package com.gxgy.uilt;

import java.util.Random;


/**
 * @description: 生成id 
 * @author: Qin Fengang
 * @date: 2021-11-8
 */
public class RandomId {
	
	public static String getRandomById(int length){
	     String str="abcdefghijklmnopqrstuvwxyz0123456789";
	     Random random=new Random();
	     StringBuffer sb=new StringBuffer();
	     for(int i=0;i<length;i++){
	       int number=random.nextInt(36);
	       sb.append(str.charAt(number));
	     }
	     return sb.toString();
	 }
	public static void main(String[] args) {
		
		
		System.out.println(Id.user_+getRandomById(13));
		
	}

}
